#ifndef HTMLDIALOG_H_
#define HTMLDIALOG_H_

#include <akndialog.h>

#include <html\htmlcontrol.h>

/**
 * Usage:
      CHtmlDialog* dialog = new (ELeave)CHtmlDialog();
      dialog->ConstructLC(aButtonResourceId, aMenuResourceId);
      CHtmlControl* control = dialog->Container();
      control->AppendContentL(...);
      control->Refresh();
			dialog->RunLD();
 */
class CHtmlDialog : public CAknDialog
{
public:
	CHtmlControl* Container()
	{
		return iContainer;
	}
	virtual void ConstructLC(TInt aButtonResourceId, TInt aMenuResourceId);	
protected:
	virtual TBool OkToExitL(TInt aButtonId);
	virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType );
	virtual void AdjustControlRect();
private:
	SEikControlInfo CreateCustomControlL(TInt aControlType);
	
protected:
	CHtmlControl* iContainer;
};

#endif /*HTMLDIALOG_H_*/
